package com.example.devicemanage.dao;

import com.example.devicemanage.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {
    //将sql语句注解写到函数上，自动封装结果
    @Select("SELECT * FROM admin WHERE name=#{name}")
    Admin queryAdminByname(String name);
}
